package com.wicket.okrbff.web.contorller;

import cn.hutool.core.bean.BeanUtil;
import com.wicket.okrbff.biz.service.TemplateEngineService;
import com.wicket.okrbff.biz.service.dto.req.*;
import com.wicket.okrbff.biz.service.dto.res.*;
import com.wicket.okrbff.common.ro.OkrResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import java.util.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.wicket.okrcomponent.integration.FwCompConfSchemeClient;
import com.wicket.okrcomponent.integration.dto.QueryConfItemMatchAnswerDetailComRespDto;
import com.wicket.okrapp.integration.dto.QueryConfItemMatchAnswerDetailComReqDto;
import com.wicket.okrframework.integration.FwBaseUserClient;
import com.wicket.okrframework.integration.dto.QueryUserInfoDetailComRespDto;
import com.wicket.okrframework.integration.dto.QueryUserInfoDetailComReqDto;
import com.wicket.okrcomponent.integration.FwCompTemplateEngineClient;
import com.wicket.okrcomponent.integration.dto.GenerateSemanticInstanceStoryComRespDto;
import com.wicket.okrcomponent.integration.dto.GenerateSemanticInstanceStoryComReqDto;
import com.wicket.okrbff.common.exception.Assert;
import com.wicket.okrbff.common.util.CommonFunctionHelper;

/**
 * @author ：
 * @date ：
 * 
 *
 * @version 1.0
 */
@Api(value = "TemplateEngine", tags = { "TemplateEngine" })
@RestController
// @RequestMapping("/oms/templateEngine/")
public class TemplateEngineController {

  @Autowired
  TemplateEngineService templateEngineService;
/**
   * B2生成回退预制消息内容
   * gen by moon at 2/13/2024, 10:50:57 AM
   */
    @PostMapping("/oms/templateEngine/generateBackPrefabricateMsgContent")
    @ApiOperation(value = "B2生成回退预制消息内容", response = OkrResult.class)
    public OkrResult<BffGenerateBackPrefabricateMsgContentRespDto> generateBackPrefabricateMsgContent(@RequestBody(required=false) @Validated BffGenerateBackPrefabricateMsgContentReqDto reqDTO){
        return OkrResult.success(templateEngineService.generateBackPrefabricateMsgContent(reqDTO));
    }
}
